/**
 * Copyright (c) 2016-2019 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有，侵权必究！
 */

package com.qywx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qywx.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName TagDao
 * @Description: 标签
 * @Author wmj
 * @Date 2020/3/9
 * @Version V1.0
 **/
@Mapper
@Component
public interface TagDao extends BaseMapper<TagEntity> {

	//获取标签用户
	public List<TagUserEntity> getTagUser(Long tagid,int start,int size);

	//增加标签用户
	public void saveTagUser(Long tagid, String userid);

	//删除标签用户
	public void delTagUser(Long tagid, String userid);

	//获取标签列表
	public List<TagEntity> geTagList();

	void delTag(Long tagid);

    String asynchronousDetection();

	List<TagEntity> synchronize();

	String getTotal(Long tagid);

	List<TagUserEntity> getExportTag(String tagid);

    void save(UserTagEntity userTagEntity);

    List<TagEntity> findByName(String name);

    Long findTagIdByName(String tagname);

	void batchInset(Long tagid, List<String> list);

	TagEntity selectByName(String tagname);

	void delUserTad(List<String> list);

    void backups(TagEntity tagEntity);

	UserTagEntity selByUseridAandTagid(String userid, long tagId);

    void saveTag(TagEntity tagEntity);

	List<TagUserEntity> getTagDepidUser(Long tagid, int start, int size, int depid);

	String getTotaldepId(Long tagid,int depid);

}
